package com.shiku.imserver.common.message;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.annotation.JSONField;
import com.shiku.imserver.common.ImConst;
import java.io.Serializable;

public class MessageHead implements Serializable, Cloneable {
    private static final long serialVersionUID = 1;
    protected byte chatType;
    protected String from;
    protected String messageId;
    @JSONField(name = ImConst.OFFLINE)
    protected boolean offline;
    protected String to;

    public void setChatType(byte chatType2) {
        this.chatType = chatType2;
    }

    public void setFrom(String from2) {
        this.from = from2;
    }

    public void setMessageId(String messageId2) {
        this.messageId = messageId2;
    }

    public void setOffline(boolean offline2) {
        this.offline = offline2;
    }

    public void setTo(String to2) {
        this.to = to2;
    }

    public String getFrom() {
        return this.from;
    }

    public String getTo() {
        return this.to;
    }

    public byte getChatType() {
        return this.chatType;
    }

    public String getMessageId() {
        return this.messageId;
    }

    public boolean isOffline() {
        return this.offline;
    }

    public String toString() {
        return JSON.toJSONString(this);
    }
}
